<?php
/**
 * @package SQL
 * @subpackage Query
 *
 */
class Lead_Sql_Query_Operator_In extends Lead_Sql_Query_Operator
{
	
	
	public function getSQL($value)
	{
		if(is_array($value))
		{
			$value = implode(', ', $value);
		}
		
		$phrase = " IN ({$value})";
		
		if($this->isNegated())
			$phrase = "NOT {$phrase}";
		
		return $phrase;
			
		
	}
	
	
}
?>